package com.ssm.pre.dao;

import java.util.List;
import java.util.Map;

public interface SystemDao {

	//查询一级菜单
	List<Map<String, Object>> queryMenuByOneList(Map<String, Object> map) throws Exception;

	//查询一级菜单，用作select下拉框选择
	List<Map<String, Object>> queryMenuByOneSelect(Map<String, Object> map) throws Exception;

	//根据parentId查询二级菜单
	List<Map<String, Object>> queryMenuByTwoList(Map<String, Object> map) throws Exception;
	
	//根据ID查询一条信息
	Map<String, Object> queryMenuById(Map<String, Object> map) throws Exception;
	
	//根据类别和序号查询一条菜单信息
	Map<String, Object> queryMenuByTypeAndSort(Map<String, Object> map) throws Exception;
	
	//添加菜单
	void addMenu(Map<String, Object> map) throws Exception;

	//删除所属一级的二级菜单
	void deleteMenuByParentId(Map<String, Object> map) throws Exception;

	//删除一级菜单
	void deleteMenuById(Map<String, Object> map) throws Exception;

	//根据ID修改一条菜单信息
	void updateMenuById(Map<String, Object> map) throws Exception;

}
